<!DOCTYPE html>
<html>
<head>
    <title>后台</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="<?=HW_CSS?>style.css">
    <link rel="stylesheet" href="<?=HW_CSS?>bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?=HW_CSS?>dataTables.bootstrap.css">
    <link rel="stylesheet" href="<?=HW_CSS?>base.css">
    <link rel="stylesheet" href="<?=HW_CSS?>jquery-ui.css">
    <!--<link rel="stylesheet" href="<?=HW_CSS?>jquery-ui.theme.css">-->
    <!--<link rel="stylesheet" href="<?=HW_CSS?>jquery-ui.structure.min.css">-->
    <link rel="stylesheet" type="text/css" href="<?=HW_CSS?>table_list.css">
    <style lang="">
    .search-input{
        padding-right: 25px;
    }
    .search-input + .iconfont{
        position:absolute;
        right: 20px;
        top:5px;
    }
    </style>
</head>
<body>
    <!-- toolbar_container -->
    <div id="toolbar_container">
        <div class="tb_item">
            <button type="button" data-toggle="modal" data-target="#filter_modal">筛选</button>
        </div>
        <div class="tb_item">
            <a  href="<?=base_url().'Admin/User/user'?>">刷新</a>
        </div>
        <div class="search_item">
            <form method="POST" id='tableForm' action="<?=base_url().'Admin/User/user';?>">
                <input type='input' name='name' placeholder='' value="<?=isset($search_name)?$search_name:'';?>">
                <button type='submit' style="color:#4990E2;" id='filter'>搜索</button>
            </form>
        </div>
    </div>
    <form method="POST" action="" class="main_form">
        <div class="box-body table-responsive">
            <table id="example" class="table table-hover table-bordered">
                <thead>
                    <tr>
                        <th class="three"><label><input type="checkbox" id="check-all" class="checkAll">全选</label></th>
                        <th class="three">序号</th>
                        <th class="five">昵称</th>
                        <th class="twelve">注册时间</th>
                    </tr>
                </thead>
            </table>
        </div>
        <input type="hidden" id="ajax-url" value="<?=$ajaxUrl?>">
    </form>
    <!-- 筛选模态框 -->
    <div id="filter_modal" class="modal fade bs-example-modal-sm">
        <div class="modal-dialog modal_main delete_modalwidth">
            <div class="modal-content modal_border">
                <div class="modal-header modal_h">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span>
                        <span class="sr-only">Close</span>
                    </button>
                    <h4 class="modal-title" id="myModalLabel">筛选</h4>
                </div>
                <div class="modal-body">
                    <form action="<?=base_url().'Admin/User/user'?>" class="form-horizontal" id="filterForm" method="post">
                        <div class="form-group">
                            <label for="" class="col-sm-2 control-label">注册时间</label>
                            <div class="col-sm-4">
                                <input name="start_time" type="date" class="form-control" >
                            </div>
                            <label class="control-label col-sm-1" >~</label>
                            <div class="col-sm-4">
                                <input name="end_time" type="date" class="form-control" >
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="" class="col-sm-2 control-label">状态</label>
                             <div class="col-sm-6">
                                <select name="status"class="form-control">
                                    <option value="">全部</option>
                                    <option value="1">正常</option>
                                    <option value="0">冻结</option>
                                    <option value="2">匿名</option>
                                </select>
                            </div>
                        </div> 
                        <div class="form-group">
                            <label for="" class="col-sm-2 control-label">所属顾问</label>
                            <div class="col-sm-6">
                                <select name="adviser_id"class="form-control">
                                    <option value="">全部</option>
                                    <option value="0">未分配</option>
                                    <option value="1">已分配</option>
                                </select>
                            </div>
                        </div>
                        <div class="modal-footer modal_f">
                            <button id='filterBtn' type="submit" class="btn btn-primary">确定</button>
                            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</body>
<script>
    var baseUrl = "<?=base_url()?>";
</script>
<script type="text/javascript" src="<?=HW_STA?>lib/require.js" data-main="<?=HW_STA?>module/user/user.js"></script>

</html>